package com.loongnoy.mapper;

import com.loongnoy.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface UserMapper {
    @Insert("INSERT INTO t_user(account, password, username, age, sex, registe_date) " +
            "VALUES(#{account}, #{password}, #{username}, #{age}, #{sex}, #{registeDate})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insert(User user);
} 